.rs-menu{
    position: absolute;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
    background: #fff;
    border-radius: 4px;
    padding: 2px 0;
    border: solid 1px #e6e6e6;
}

.rs-submenu{
    position: relative;
    &.expand{
        >.rs-menu-item{
            //background: #ecf5ff;
            color: #409eff;
            &::after{
                position: absolute;
                content: ' ';
                top:0;
                left:0;
                width: 100%;
                height: 100%;
                background-color: #000;
                opacity: .1;
            }
        }
    }
    .rs-menu{
        .rs-menu-item{
            padding:0 32px;
            >.item-icon{
                left:10px;
            }
        }
    }
}

.rs-menu-item{
    position: relative;
    display: block;
    padding: 0 8px 0 8px;
    list-style: none;
    line-height: 32px;
    margin: 0;
    font-size: 14px;
    outline: 0;
    color: #606266;
    cursor: pointer;
    &::after{
        position: absolute;
        bottom: -2px;
        left:0;
        height: 2px;
        width: 100%;
        content: ' ';
        background-color: transparent;
    }
    &:hover{
        //background: #ecf5ff;
        color: #409eff;
        &::after{
            position: absolute;
            content: ' ';
            top:0;
            left:0;
            width: 100%;
            height: 100%;
            background-color: #000;
            opacity: .1;
        }
    }
    .item-icon{
        position: absolute;
        left:6px;
        top:0;
        height: 32px;
        line-height: 32px;
    }
    .item-expand-down-icon{
        position: absolute;
        right:6px;
        top:0;
        height: 32px;
        line-height: 32px;
        font-size: 14px;
    }
    .item-expand-right-icon{
        position: absolute;
        right:8px;
        top:0;
        height: 32px;
        line-height: 32px;
        font-size: 14px;
    }
    .item-text{
        position: relative;
        white-space:nowrap;
        text-overflow:ellipsis;
        user-select: none;
    }

    &.padding-left{
        padding-left:24px;
    }

    &.padding-right{
        padding-right:24px;
    }

    &.disabled{
        color: #c0c4cc;
        cursor: not-allowed;
    }
    &.h-line{
        height: 4px;
        &::after{
            position: absolute;
            bottom: 1px;
            left:0;
            height: 0px;
            width: 100%;
            content: ' ';
            border-bottom: solid 1px #e6e6e6;
        }
    }
}

.rs-menubar{
    position: relative;
    background: #fff;
    border-bottom: solid 1px #e6e6e6;
    >.rs-menu{
        position: relative;
        float: left;
        box-shadow:none;
        border-radius:0;
        padding: 0px 5px;
        height:32px;
        border: none;
        >.rs-submenu,>.rs-menu-item{
            float: left;
        }
    }
    &.align-right{
        >.rs-menu{
            float: right;
        }        
    }
    &:after {
        visibility: hidden;
        display: block;
        font-size: 0;
        content: " ";
        clear: both;
        height: 0;
    }
}
.rs-contextmenu{
    position: absolute;
    margin:0;
    padding: 0;
    >.rs-menu{
        position: relative;
        .rs-menu-item{
            padding:0 40px;
        }
    }    
}